<%@page import="com.rainliang.project.connect.util.QQ_Util"%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@page import="org.apache.commons.logging.LogFactory"%>
<%@page import="org.apache.commons.logging.Log"%>
<%
Log logger = LogFactory.getLog(this.getClass());
	String from=request.getParameter("from");
	if(from!=null){
		session.setAttribute("from",from);
	}

	String forwardUrl=request.getParameter("url");
	if(forwardUrl!=null){
		session.setAttribute("url",forwardUrl);
	}
	
	String callbakcurl=request.getScheme()+"://"+request.getServerName()+"/jsp_cn/connect/qq/callback.jsp";
	String userurl="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id="+QQ_Util.appid+"&redirect_uri="+callbakcurl+"&scope="+QQ_Util.scope;
	response.sendRedirect(userurl);
%>
 
 